<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>浮动网页布局</title>
	<style class="text/css">
		.header,.footer{
			width:500px;
			height:100px;
			background: yellow;
		}
		.main,.left,.right{
			height: 300px;
		}
		.left,.right{
			width: 100px;
		}
		.left{
			background: red;
			float: left;
		}
		.right{
			background: blue;
			float: right;
		}
		.main{
			height: 300px;
			width: 500px;
			background: pink;
		}
		.content{
			width: 300px;
			height: 300px;
			background:white;
			float: left;
		}
		.content-top{
			height: 150px;
			width: 300px;
			background: black;
		}
		.content-bot{
			height: 150px;
			width: 300px;
			background:orange;
		}
	</style>
</head>
<body>
	<div class="header"></div>
	<div class="main">
		<div class="left"></div>
		<div class="content">
			<div class="content-top"></div>
			<div class="content-bot"></div>
		</div>
		<div class="right"></div>
	</div>
	<div class="footer"></div>
</body>
</html>